{% extends 'base.html' %}

{% block title %}项目编号列表{% endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static', filename='css/index.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/stafflist.css') }}">
{% endblock %}



{% block index_main %}
    <div class="indexmain">
        <div class="addstaff">
            <form action="{{ url_for('newnum') }}", method="get">
                <button class="btn btn-primary">新增项目</button>
            </form>
        </div>
        <table class="table">
            <tbody>
                <tr>
                    <th>#</th>
                    <th>项目编号</th>
                    <th>项目名称</th>
                    <th>客户单位</th>
                    <th>销售负责人</th>
                    <th>售前负责人</th>
                    <th>研发负责人</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
                {% for pronum in pronums %}
                    <tr>
                        <td>{{ pronum.id }}</td>
                        <td>{{ pronum.project_num }}</td>
                        <td>{{ pronum.pro_name }}</td>
                        <td>{{ pronum.custunit }}</td>
                        <td>{{ pronum.saleshead }}</td>
                        <td>{{ pronum.techhead }}</td>
                        <td>{{ pronum.develophead }}</td>
                        <td>{{ pronum.beizhu }}</td>
                        <td><a href="#">编辑</a></td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}